/*
 * Object.h
 *
 *  Created on: 20.06.2011
 *      Author: 123
 */

#ifndef OBJECT_H_
#define OBJECT_H_
#include <oslib/oslib.h>

struct XY{
	int x,y;
	XY *Prev,*Next;
	XY(int a=0,int b=0):x(a),y(b){
		Prev=Next=0;
	}






};
class sObject {
protected:
	OSL_IMAGE *Tex;
	long Number;
	XY *ObjParent;
public:
	sObject();
	virtual ~sObject();
	virtual void Create(){};
	virtual void Update(){};
	virtual void Delete(){};
	virtual void Draw(int,int){};
	void Load(OSL_IMAGE*a){
		oslAssert(Tex=a);
		//fprintf(stderr,"Tex heT");
	}
	bool Add(float XPos, float YPos);

};

#endif /* OBJECT_H_ */
